package day0517;

class Person {
    int age=1;
    static int floor=6;
}



class Student extends  Person {
    int a=2;
}





public class PersonTest {
    public static void main(String[] args) {
        Student zs=new Student();
        zs.age=zs.age+1;//zs.age
        Person.floor=Person.floor+1;//zs.floor 2
        System.out.println(zs.floor);
        Student ls=new Student();
        System.out.println(ls.floor);

        System.out.println(Person.floor);
    }
}
